#objdump: -dr --prefix-addresses --show-raw-insn
#name: NIOS2 R2 STWM instructions
#as: -march=r2

# Test the STWM instructions

.*: +file format elf32-littlenios2

Disassembly of section .text:
0+0000 <[^>]*> d00105e8 	stwm	\{r2\},--\(r23\)
0+0004 <[^>]*> d00205e8 	stwm	\{r3\},--\(r23\)
0+0008 <[^>]*> d00405e8 	stwm	\{r4\},--\(r23\)
0+000c <[^>]*> d00805e8 	stwm	\{r5\},--\(r23\)
0+0010 <[^>]*> d01005e8 	stwm	\{r6\},--\(r23\)
0+0014 <[^>]*> d02005e8 	stwm	\{r7\},--\(r23\)
0+0018 <[^>]*> d04005e8 	stwm	\{r8\},--\(r23\)
0+001c <[^>]*> d08005e8 	stwm	\{r9\},--\(r23\)
0+0020 <[^>]*> d10005e8 	stwm	\{r10\},--\(r23\)
0+0024 <[^>]*> d20005e8 	stwm	\{r11\},--\(r23\)
0+0028 <[^>]*> d40005e8 	stwm	\{r12\},--\(r23\)
0+002c <[^>]*> d80005e8 	stwm	\{r13\},--\(r23\)
0+0030 <[^>]*> d00128a8 	stwm	\{r14\},\(r2\)\+\+
0+0034 <[^>]*> d00328a8 	stwm	\{r14,r15\},\(r2\)\+\+
0+0038 <[^>]*> d00728a8 	stwm	\{r14,r15,r16\},\(r2\)\+\+
0+003c <[^>]*> d00f28a8 	stwm	\{r14,r15,r16,r17\},\(r2\)\+\+
0+0040 <[^>]*> d01f28a8 	stwm	\{r14,r15,r16,r17,r18\},\(r2\)\+\+
0+0044 <[^>]*> d03f28a8 	stwm	\{r14,r15,r16,r17,r18,r19\},\(r2\)\+\+
0+0048 <[^>]*> d07f28a8 	stwm	\{r14,r15,r16,r17,r18,r19,r20\},\(r2\)\+\+
0+004c <[^>]*> d0ff28a8 	stwm	\{r14,r15,r16,r17,r18,r19,r20,r21\},\(r2\)\+\+
0+0050 <[^>]*> d1ff28a8 	stwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22\},\(r2\)\+\+
0+0054 <[^>]*> d3ff28a8 	stwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22,r23\},\(r2\)\+\+
0+0058 <[^>]*> d7ff28a8 	stwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22,r23,fp\},\(r2\)\+\+
0+005c <[^>]*> dfff28a8 	stwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22,r23,fp,ra\},\(r2\)\+\+
0+0060 <[^>]*> d2210b68 	stwm	\{r2,r7,r11\},\(r13\)\+\+
0+0064 <[^>]*> d2211b68 	stwm	\{r2,r7,r11\},\(r13\)\+\+,writeback
